<script setup lang="ts">
import {onMounted, watch} from "vue";
import {useUserStore} from "/@/store/modules/user";
const  userStore = useUserStore()
const closeLoading = () => {
  let element: HTMLElement = document.querySelector(".loading-bg") as HTMLElement;
  element.style.display = "none";
}

watch(
    () => {return userStore.menuLoad},
    (newValue) => {
      if(newValue){
        closeLoading()
      }
    },
    { immediate: true }
);
onMounted(()=>{

})
</script>

<template>
  <router-view></router-view>
</template>

<style lang="scss">
@import './theme/index.scss';
</style>
